package test2;

public class Triangle {
    private double a;
    private double b;
    private double c;
 public Triangle(int a,int b,int c){
    this.a=a;
    this.b=b;
    this.c=c;
 }

    public double getA() {
        return a;
    }

    public void setA(double a) {
        this.a = a;
    }

    public double getB() {
        return b;
    }

    public void setB(double b) {
        this.b = b;
    }

    public double getC() {
        return c;
    }

    public void setC(double c) {
        this.c = c;
    }

    public void getPerimeter(){
        System.out.println("三角形的周长为："+(this.a+this.b+this.c));
    }
}
